{extend name="public/base"}

{block name="title"}
用户信息
{/block}

{block name="style"}
{css href="/static/wechat/css/center.css" /}
{/block}

{block name="body"}
<div class="pageControl userMessage">
    <div class="msui_nav msui_navTop">
        <a class="msui_navTop-back" href="javascript:history.back();" tmp_href="{$url}"><i class="micon-back"></i></a>
        <h1 class="msui_navTop-title">用户信息</h1>
    </div>
    <div class="weui-cells">
        <a class="weui-cell weui-cell_access" href="{:url('member/save_image', ['model' => 'member_role_info', 'field' => 'headimgurl', 'type' => $type])}">
            <div class="weui-cell__bd">
                <p class="fs08 cl-3333">头像</p>
            </div>
            <div class="weui-cell__ft"><img src="{$member_info.headimgurl|get_img_url}"  /></div>
        </a>
        <a class="weui-cell weui-cell_access" href="{:url('w_member_role_info/save_member_role_info', ['field' => 'nickname', 'type' => $type])}">
            <div class="weui-cell__bd">
                <p class="fs08 cl-3333">昵称</p>
            </div>
            <div class="weui-cell__ft">{empty name="member_info.nickname"}未设置{else /}{$member_info.nickname}{/empty}</div>
        </a>
        <a class="weui-cell weui-cell_access" href="{:url('w_member_role_info/save_member_role_info', ['field' => 'sex', 'type' => $type])}">
            <div class="weui-cell__bd">
                <p class="fs08 cl-3333">性别</p>
            </div>
            <div class="weui-cell__ft">{$member_info.sex|default='0'|get_sex}</div>
        </a>
        <a class="weui-cell weui-cell_access" href="{:url('w_member_role_info/save_member_role_info', ['field' => 'birthday', 'type' => $type])}">
            <div class="weui-cell__bd">
                <p class="fs08 cl-3333">生日</p>
            </div>
            <div class="weui-cell__ft">{empty name="member_info.birthday"}未设置{else /}{$member_info.birthday|date="Y-m-d", ###}{/empty}</div>
        </a>
        <a class="weui-cell weui-cell_access" href="{:url('w_member_role_info/save_member_role_info', ['field' => 'phone', 'type' => $type])}">
            <div class="weui-cell__bd">
                <p class="fs08 cl-3333">联系电话</p>
            </div>
            <div class="weui-cell__ft">{empty name="member_info.phone"}未设置{else /}{$member_info.phone}{/empty}</div>
        </a>
        <a class="weui-cell weui-cell_access" href="{:url('w_member_role_info/save_member_role_info', ['field' => 'signature', 'type' => $type])}">
            <div class="weui-cell__bd">
                <p class="fs08 cl-3333">个性签名</p>
            </div>
            <div class="weui-cell__ft">{empty name="member_info.signature"}未设置{else /}{$member_info.signature}{/empty}</div>
        </a>
    </div>
    {eq name="type" value="0"}
    <div class="weui-cells">
        <a class="weui-cell weui-cell_access" href="{:url('w_member_car/index')}">
            <div class="weui-cell__bd">
                <p class="fs08 cl-3333">我的爱车</p>
            </div>
            {empty name="member_info.my_car"}
            <div class="weui-cell__ft">未设置</div>
            {else /}
            <div class="weui-cell__ft">{$member_info.my_car.name}</div>
            {/empty}
        </a>
    </div>
    {/eq}

    {empty name="member_info.certification"}
    <div class="weui-cells">
        <a class="weui-cell weui-cell_access" href="{:url('w_wallet/save_bank', ['type' => 0, 'url' => 1])}">
            <div class="weui-cell__bd">
                <p class="fs08 cl-3333">实名认证</p>
            </div>
            <div class="weui-cell__ft">未认证</div>
        </a>
    </div>
    {else /}
    <div class="weui-cells">
        <a class="weui-cell weui-cell_access" href="{:url('certification')}">
            <div class="weui-cell__bd">
                <p class="fs08 cl-3333">实名认证</p>
            </div>
            <div class="weui-cell__ft">*{$member_info.certification.proposer|msubstr=10,1,'utf-8',false}</div>
        </a>
    </div>
    {/empty}
</div>
{/block}

{block name="javascript"}
{/block}